<?php

namespace addons\CustomerService\common\models\robot;

use common\behaviors\MerchantBehavior;

/**
 * This is the model class for table "{{%addon_customer_service_robot_segmentation}}".
 *
 * @property int $id 分词id
 * @property int $merchant_id 商户id
 * @property string $segmentation 分词内容
 * @property int $times 分词出现次数
 * @property int $created_at
 * @property int $updated_at
 */
class Segmentation extends \common\models\base\BaseModel
{
	use MerchantBehavior;
	
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%addon_customer_service_robot_segmentation}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['merchant_id', 'segmentation'], 'required'],
            [['merchant_id', 'times', 'created_at', 'updated_at'], 'integer'],
            [['segmentation'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => '分词id',
            'merchant_id' => '商户id',
            'segmentation' => '分词内容',
            'times' => '分词出现次数',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
